package com.sms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

//商品
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Products {
    @TableId(type = IdType.AUTO)
    private int productID;
    private String productName;
    private java.sql.Date productDate;
    private double price;
    private String image;
    private int stock;

    private int categoryID;
    @TableField(exist = false)
    private Categories categories;
}